<?php
/**
 * Created by PhpStorm.
 * User: xuzhong
 * Date: 2025/4/3
 * Time: 11:30
 */
namespace app\admin\model;
use think\Model;

class Classification extends BaseModel
{
    // 定义数据表名
    protected $name = 'cc_names';

    // 定义主键
    protected $primaryKey = 'id';

    // 定义创建时间字段名
    protected $createTime = 'create_time';


    // 定义自动时间戳
    protected $autoWriteTimestamp = true;

    // 设置字段信息
    protected $schema = [
        'id' => 'int',
        'cc_name' => 'string',
        'sellable_wids' => 'string',
        'create_time' => 'datetime',
        'update_time' => 'datetime',
        'creator' => 'int',
        'updater' => 'int',
        'is_del' => 'int',
    ];
}